package com.glp.work.flow.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import java.math.BigDecimal;

@Data
@ApiModel(value = "CashPlanChange", description = "资金计划变更列表")
public class CashPlanChange {
    @Id
    private Long id;

    @ApiModelProperty(value = "资金计划变更类型：删除：DELETE,修改：EDIT")
    private String changeType;

    @ApiModelProperty(value = "原资金计划ID")
    private Long cashPlanId;

    @ApiModelProperty(value = " 原资金计划编号：CMP_YYYYMMDD_ID")
    private String planCode;

    @ApiModelProperty(value = "状态, -1删除,0已提交,1驳回,2审批通过")
    private Integer status;

    @ApiModelProperty(value = "资金主体id")
    private Long funderId;

    @ApiModelProperty(value = " 授信客户-客户来源:柯利:COLLIE,资管:CMR")
    @Column(name = "credit_customer_source")
    private String creditCustomerSource;

    @ApiModelProperty(value = " 授信客户-统一社会编码（来自柯利或手工输入）")
    private String creditCustomerNo;

    @ApiModelProperty(value = " 授信客户-客户类型:个人:CUSTOMER_TYPE_PERSON,企业:CUSTOMER_TYPE_COMPANY")
    private String creditCustomerType;

    @ApiModelProperty(value = " 授信客户编码:外部客户名称（来自柯利或手工输入）")
    private String creditCustomerName;


    @ApiModelProperty(value = " 授信客户编码:外部客户编号（来自柯利）")
    private String creditCustomerExtNo;

    @ApiModelProperty(value = "用信客户-统一社会编码（手工输入）")
    private String useCustomerNo;

    @ApiModelProperty(value = "用信客户编码:外部客户名称（手工输入）")
    private String useCustomerName;

    @ApiModelProperty(value = "用信客户编码:外部客户编号（冗余）")
    private String useCustomerExtNo;

    @ApiModelProperty(value = "资金类型")
    private Long cashTypeId;

    @ApiModelProperty(value = "申请金额(元)")
    private Double applyAmount;

    @ApiModelProperty(value = " 用款可能性(%)")
    private Double usePercent;

    @ApiModelProperty(value = "调整后金额(元)")
    private Double ajustedAmount;

    @ApiModelProperty(value = "内部收益率（百分比）")
    private Double irr;

    @ApiModelProperty(value = "币种，RMB：人民币，USD：美元...")
    private String currency;

    @ApiModelProperty(value = "支付日期")
    private Long paymentDate;

    @ApiModelProperty(value = "变更申请字段列表，用,隔开")
    private String changeFileds;

    @ApiModelProperty(value = "工作流事例id")
    private String procInstId;

    @ApiModelProperty(value = "工作流定义key")
    private String procDefKey;

    @ApiModelProperty(value = "提交用户id")
    private String userNo;

    @ApiModelProperty(value = "提交用户名称")
    private String userName;


    private Long createTime;

    private Long updateTime;

    @ApiModelProperty(value = "平台编码")
    private String tenantNo;

    @ApiModelProperty(value = "提交审核时间")
    private Long submitTime;
}